package edu.pku.sei.transformation.qvt;

import org.eclipse.ui.IStartup;

import edu.pku.sei.transformation.codegen.CodegenRegister;
import edu.pku.sei.transformation.engine.EngineRegister;
import edu.pku.sei.transformation.qvt.action.MediniQVTCodegenAdapter;
import edu.pku.sei.transformation.qvt.action.StandardQVTCodegenAdapter;
import edu.pku.sei.transformation.qvt.engine.mediniqvt.MediniQVTAdapter;
import edu.pku.sei.transformation.qvt.engine.modelmorf.ModelMorfAdapter;

public class QVTStartup implements IStartup {

	public void earlyStartup() {
		System.out.println("qvt bundle started");

		CodegenRegister.INSTANCE.registCodegenFactory(new StandardQVTCodegenAdapter());
		CodegenRegister.INSTANCE.registCodegenFactory(new MediniQVTCodegenAdapter());

		EngineRegister.INSTANCE.registEngine(new ModelMorfAdapter());
		EngineRegister.INSTANCE.registEngine(new MediniQVTAdapter());
	}

}
